<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.68.1" />


<title>COVID-19 MAP (PICTURE) - A Hugo website</title>
<meta property="og:title" content="COVID-19 MAP (PICTURE) - A Hugo website">


  <link href='/favicon.ico' rel='icon' type='image/x-icon'/>



  








<link href='//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css' rel='stylesheet' type='text/css' />



<link rel="stylesheet" href="/css/fonts.css" media="all">
<link rel="stylesheet" href="/css/main.css" media="all">



  </head>
  <body>
    <div class="wrapper">
      <header class="header">
        <nav class="nav">
  <a href="/" class="nav-logo">
    <img src="/images/title.jpeg"
         width="50"
         height="50"
         alt="Logo">
  </a>

  <ul class="nav-links">
    
    <li><a href="/about/">About</a></li>
    
    <li><a href="https://github.com/rstudio/blogdown">GitHub</a></li>
    
    <li><a href="https://twitter.com/rstudio">Twitter</a></li>
    
  </ul>
</nav>

      </header>


<main class="content" role="main">

  <article class="article">
    
    <span class="article-duration">1 min read</span>
    

    <h1 class="article-title">COVID-19 MAP (PICTURE)</h1>

    
    <span class="article-date">2020-05-07</span>
    

    <div class="article-content">
      


<div class="figure" style="text-align: center"><span id="fig:img1"></span>
<img src="images/timg.jpg" alt="Rmd法" width="80%" />
<p class="caption">
Figure 1: Rmd法
</p>
</div>
<div class="figure">
<img src="images/timg.jpg" alt="md法" />
<p class="caption">md法</p>
</div>
<p><font color=blue>nCov2019包绘制图片</font></p>
<div class="figure" style="text-align: center"><span id="fig:img2"></span>
<img src="images/map.png" alt="图" width="80%" />
<p class="caption">
Figure 2: 图
</p>
</div>
<pre><code>x &lt;- get_nCov2019()


d  &lt;-  x[&#39;湖北&#39;,]



dev.new()
ggplot(d, aes(area = dead, fill = name, label = paste(name, dead, sep = &quot;\n&quot;))) +
  geom_treemap() +
  geom_treemap_text(fontface = &quot;italic&quot;, colour = &quot;white&quot;, place = &quot;centre&quot;,grow = TRUE)
</code></pre>

    </div>
  </article>

  


</main>

      <footer class="footer">
        <ul class="footer-links">
          <li>
            <a href="/index.xml" type="application/rss+xml" target="_blank">RSS feed</a>
          </li>
          <li>
            <a href="https://gohugo.io/" class="footer-links-kudos">Made with <img src="/images/hugo-logo.png" alt="Img link to Hugo website" width="22" height="22"></a>
          </li>
        </ul>
      </footer>

    </div>
    



<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>



<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/r.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/yaml.min.js"></script>
<script>hljs.configure({languages: []}); hljs.initHighlightingOnLoad();</script>



    
<script src="/js/math-code.js"></script>
<script async src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>


    
  </body>
</html>

